package com.gxa.service.shezhiservice;

import com.gxa.common.R;
import com.gxa.pojo.GongYingShang;
import com.gxa.pojo.KeHu;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;

/**
 * @Author weishen
 */
@Mapper
public interface GongYingShangService {
    R selectAllGongYingShang();
    int selectCountGongYingShang();
    R selectAllGongYingShangForPage(int page,int size);
    R selectAllGongYingShangType();
    int selectCountAnyGongYingShang(String gongYingShangType, String gongYingShangBianHao,
                                    String gongYingShangMingCheng, String lianXiRen,
                                    String phone);
    R selectGongYingShangByTypeOrBianHaoOrLianXiRenOrMingChenOrPhone(int page,int size,
                                                            String gongYingShangType, String gongYingShangBianHao,
                                                            String gongYingShangMingCheng, String lianXiRen,
                                                            String phone);
    R insertGongYingShang(GongYingShang gongYingShang);

    R updateGongYingShangById(GongYingShang gongYingShang);

    R deleteGongYingShangById(ArrayList<Integer> id);
}
